package framework;

public class Color {
	public static final Color BLACK = new Color(0, 0, 0);
	public static final Color GRAY = new Color(120, 120, 120);
	public static final Color WHITE = new Color(255, 255, 255);
	public static final Color RED = new Color(255, 0, 0);
	public static final Color GREEN = new Color(0, 255, 0);
	public static final Color BLUE = new Color(0, 0, 255);
	public static final Color YELLOW = new Color(255, 255, 0);
	public static final Color TRANSPARENT = new Color(255, 255, 255, 0);

	private final short my_red;
	private final short my_green;
	private final short my_blue;
	private final short my_alpha;

	public Color(int r, int g, int b, int a) {
		my_red = (short) r;
		my_green = (short) g;
		my_blue = (short) b;
		my_alpha = (short) a;
	}

	public Color(int r, int g, int b) {
		this(r, g, b, 255);
	}

	public int getRed() {
		return my_red;
	}

	public int getBlue() {
		return my_blue;
	}

	public int getGreen() {
		return my_green;
	}

	public int getAlpha() {
		return my_alpha;
	}
}
